/*
 * Copyright (C) 2009 AnK Team
 *	 Andrey Korolev
 *	 Anna Krel
 *	 Anna Kapanina
 *	 
 *	 http://code.google.com/p/ankfood/	
 *    
     
 *    Licensed under the GNU General Public License, Version 2.0 (the "License");
 *
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *         http://www.gnu.org/licenses/gpl-2.0.html

 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,

 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */



package org.ank.food;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class InfoActivity extends Activity{
	
	Button backButton;
	TextView textView;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.info_activity);
        textView = (TextView)findViewById(R.id.info_textview);
        textView.setVerticalScrollBarEnabled(true);
        textView.append("\n\n");
        textView.append(getString(R.string.launch_online_manual));
//        textView.append("\n");
//        textView.append(getString(R.string.man_adress));
        
        backButton = (Button)findViewById(R.id.info_back_button);
        backButton.setOnClickListener(new Button.OnClickListener(){
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent();
        		intent.setClass(getApplicationContext(), ProfileChooseActivity.class);
        		startActivity(intent);
        		finish();
			}
        });
	}
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			Intent intent = new Intent();
			intent.setClass(getApplicationContext(), ProfileChooseActivity.class);
			startActivity(intent);
			finish();
		}
	    return super.onKeyDown(keyCode, event);
	}

}
